package com.hqully.smartfumehood.service;

import com.github.pagehelper.PageInfo;
import com.hqully.smartfumehood.common.vo.QueryVo;
import com.hqully.smartfumehood.entity.FumeHoodData;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *    针对表【fume_hood_data】的数据库操作Service
 * </p>
 * @author liulingyu
 * @date 2022-06-24 10:30
 * @version 1.0
 */
public interface FumeHoodDataService extends IService<FumeHoodData> {


    /**
     * <p>
     *     添加通风柜数据
     * </p>
     * @date 2022/6/24 16:18 <br>
     * @author liulingyu <br>
     * @param fumeHoodData 通风柜数据实体类
     * @return {@link int}
     */
    int addFumeHoodData(FumeHoodData fumeHoodData);

    /**
     * <p>
     *     根据[APId, vavId]查询通风柜数据
     * </p>
     * @date 2022/6/24 16:22 <br>
     * @author liulingyu <br>
     * @param queryVo 包括apid和通风柜id
     * @return {@link List< FumeHoodData>} 通风柜数据列表
     */
    PageInfo<FumeHoodData> findAllByAPIdAndVavId(QueryVo queryVo);


    /**
     * <p>
     *     根据[vavId]查询通风柜数据
     * </p>
     * @date 2022/7/1 15:17 <br>
     * @author liulingyu <br>
     * @param queryVo 包括通风柜id
     * @return {@link List< FumeHoodData>} 通风柜数据列表
     */
    PageInfo<FumeHoodData> findAllByVavId(QueryVo queryVo);

    /**
     * <p>
     *     验证通风柜数据是否正常，正常则返回true，异常则返回false
     * </p>
     * @date 2022/7/4 15:13 <br>
     * @author liulingyu <br>
     * @param fumeHoodData 通风柜数据实体类
     * @return {@link boolean} 是否正常
     */
    boolean verifyFumeHoodData(FumeHoodData fumeHoodData);
}
